package com.ruoyi.system.frontierCommand.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;



/**
 * 巡护记录视图对象 mall_package
 *
 * @author ruoyi
 * @date 2021-05-20
 */
@Data
@ApiModel("巡护记录视图对象")
public class TPatrolRecordVo {
	public static final String 巡护距离单位米 = "巡护距离单位米";
	private static final long serialVersionUID = 1L;

	/** 主键id */
	@ApiModelProperty("主键id")
	private Long id;

	/** 巡护任务Id */
	@ApiModelProperty("巡护任务Id")
	private Long missionId;

	/** 姓名 */
	@ApiModelProperty("巡护人员姓名")
	@Excel(name = "巡护人员姓名")
	private String name;

	@ApiModelProperty("巡护人账号")
	@Excel(name = "巡护人账号")
	private String patrolSysName;
	/** 开始时间 */
	@Excel(name = "开始时间" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty("开始时间")
	private Date beginTime;

	/** 结束时间 */
	@Excel(name = "结束时间" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty("结束时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableId(value = "end_time")
	private Date endTime;

	/** 巡护距离单位米 */
	@ApiModelProperty("巡护距离单位米")
	@Excel(name = "巡护距离单位米")
	private double distance;

	/** 巡护距离单位米 */
	@ApiModelProperty("巡护任务名字")
	@Excel(name = "巡护任务名字")
	private String missionName;
}
